package com.ruoyi.web.wuliu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论回复对象 t_review
 * 
 * @author ruoyi
 * @date 2023-12-05
 */
@ApiModel("评论回复对象")
public class TReview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Integer postId;

    /** 评论信息内容 */
    @Excel(name = "评论信息内容")
    private String content;

    /** 用户Id */
    @Excel(name = "用户Id")
    private String userId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer parentId;

    /** 1是帖子回复2是留言回复 */
    @Excel(name = "1是帖子回复2是留言回复")
    private Integer type;

    @TableField(exist = false)
    private AppUser appUser;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPostId(Integer postId) 
    {
        this.postId = postId;
    }

    public Integer getPostId() 
    {
        return postId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setParentId(Integer parentId) 
    {
        this.parentId = parentId;
    }

    public Integer getParentId() 
    {
        return parentId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public AppUser getAppUser() {
        return appUser;
    }

    public void setAppUser(AppUser appUser) {
        this.appUser = appUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("postId", getPostId())
            .append("content", getContent())
            .append("userId", getUserId())
            .append("parentId", getParentId())
            .append("createTime", getCreateTime())
            .append("type", getType())
            .toString();
    }
}
